#include "Task.h"
#include "processpool.h"

int main(int argc, char *argv[])
{

    // 1先建立管道
    int num = std::stoi(argv[1]);
    ProcessPool *pp = new ProcessPool(num, Worker);
    pp->InitProcessPool();

    pp->DispatchTak();
    pp->closestack();

    delete pp;

    return 0;
}